//---------------------------------------------------------------------------
#ifndef uSelPrtH
#define uSelPrtH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include "CForm.h"
#include "Eic.h"
#include "BTrieve.h"
#include <Buttons.hpp>
#include <Graphics.hpp>
#include <ImgList.hpp>
//---------------------------------------------------------------------------
enum PAPER_HEIGHT { PH_10INCH=0, PH_12INCH=1 };
enum PAPER_STYLE  { PS_FRENCH=0, PS_ITALIA=1 };
//---------------------------------------------------------------------------
bool __fastcall SelectQuickPrinter( const AnsiString &strFileName, AnsiString &strConstructeur, AnsiString &strImprimante, AnsiString &strPort, PAPER_HEIGHT &ePaperH, PAPER_STYLE &ePaperS);
//---------------------------------------------------------------------------
class TfrmSelectPrinter : public CForm
{
__published:	// Composants gérés par l'EDI
    TPanel *Panel1;
    TButton *btnValider;
    TButton *btnAnnuler;
    TImage *Image1;
    TTreeView *tvPrinters;
    TListBox *lbPorts;
    TListBox *lbStatic;
    TImageList *imgList;
    TPanel *Panel2;
    TLabel *Label1;
    TLabel *Label2;
    TLabel *lblConstructeur;
    TLabel *lblImprimante;
    TButton *btnParam;
    TLabel *Label3;
    TLabel *lblPort;
    TGroupBox *gbParamPapier;
    TPanel *Panel3;
    TRadioButton *rbPaper10;
    TRadioButton *rbPaper12;
    TPanel *Panel4;
    TRadioButton *rbPaperFrench;
    TRadioButton *rbPaperItalia;
    void __fastcall lbStaticEnter(TObject *Sender);
    void __fastcall tvPrintersChange(TObject *Sender, TTreeNode *Node);
    void __fastcall lbPortsClick(TObject *Sender);
    void __fastcall btnParamClick(TObject *Sender);
    void __fastcall tvPrintersDblClick(TObject *Sender);
    
    void __fastcall FormCreate(TObject *Sender);
    
private:	// Déclarations de l'utilisateur
    CBtrvFile   m_btrvPrt;
    AnsiString  m_strFileName;
    GENERATE_OLD_ONCREATE_CFORM();
public:		// Déclarations de l'utilisateur
    __fastcall TfrmSelectPrinter( const AnsiString &strFileName, TComponent* Owner = NULL);
};
//---------------------------------------------------------------------------
#endif
